CsvReader<T>
Assembly: ServiceStack.Text.dll
View Source
Declaration
public class CsvReader<T>
Properties
Headers
View Source
Declaration
public static List<string> Headers { get; set; }
Methods
GetRows(IEnumerable<String>)
View Source
Declaration
public static List<T> GetRows(IEnumerable<string> records)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | records |
ReadObject(String)
View Source
Declaration
public static object ReadObject(string csv)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | csv |
ReadObjectRow(String)
View Source
Declaration
public static object ReadObjectRow(string csv)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | csv |
ReadStringDictionary(IEnumerable<String>)
View Source
Declaration
public static List<Dictionary<string, string>> ReadStringDictionary(IEnumerable<string> rows)
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | rows |
Read(List<String>)
View Source
Declaration
public static List<T> Read(List<string> rows)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<System.String> | rows |
ReadRow(String)
View Source
Declaration
public static T ReadRow(string value)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | value |